<template>
    <div class="pagetop">
        <a class="logo" href="/" ></a>
        <div class="download-app">
            <a download="kugou.apk" href="https://downmobile.kugou.com/Android/KugouPlayer/10409/KugouPlayer_376_V10.4.0.apk">
                <span>下载酷狗</span>
            </a>
        </div>
        <router-link class="search-btn" to="/search/index">
            <i class="iconfont icon-search"></i>
        </router-link>
    </div>
</template>

<script>
export default {
    name: 'Pagetop'
}
</script>

<style lang="scss" scoped>
$height: 50px;
.pagetop {
    width: 100%;
    height: $height;
    line-height: $height;
    background: #2ca2f9;
    overflow: hidden;
    .logo {
        width: 120px;
        height: 30px;
        display: inline-block;
        vertical-align: middle;
        margin-left: .7143rem;
        background: {
            size: 100%;
            image: url('~@/assets/logo.png')
        }
    }
    .download-app {
        display: inline-block;
        vertical-align: middle;
        span {
            width: 5.7143rem;
            height: 1.7143rem;
            line-height: 1.7143rem;
            margin-left: .7143rem;
            border: 1px solid #fff;
            border-radius: .3571rem;
            display: block;
            text-align: center;
            color: #fff;
            font-size: .8571rem;
        }
    }
    .search-btn {
        margin-right: .7143rem;
        float: right;
        text-decoration: none;
        color: #fff;
        font-weight: bold;
        i {
            font-size: 1.6rem;
        }
    }
}
</style>
